package com.yihu.article.beans;

import java.io.Serializable;
import java.util.List;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.yihu.beans.Artwork;
import com.yihu.beans.Poster;
import com.yihu.beans.dic.Resource;
import com.yihu.beans.user.Group;
import com.yihu.beans.user.Priviledge;
import com.yihu.beans.user.ResourceURI;
import com.yihu.beans.user.Role;
import com.yihu.beans.user.User;
@JsonIgnoreProperties(ignoreUnknown=true)
public class ResultPage implements Serializable {

	private int totalPages;
	private int totalRecords;
	private int pageSize;
	private int currentPage;
	private List<Article> articles;
	private List<User> users;
	private List<ArticleCategory> categories;
	private List<Artwork> artworks;

	private List<Attachment> attachments;

	private List<Group> groups;
	private List<Role> roles;
	
	private List<Priviledge> priviledges;
	private List<ResourceURI> resources;
	
	private List<Resource> dataDics;
	
	private List<Poster> posters;
	private Object data;
	private int result;
	private String message;
	
	
	public ResultPage(){};
	
	
	public Object getData() {
		return data;
	}



	public void setData(Object data) {
		this.data = data;
	}



	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public List<Poster> getPosters() {
		return posters;
	}

	public void setPosters(List<Poster> posters) {
		this.posters = posters;
	}
	
	public List<Resource> getDataDics() {
		return dataDics;
	}

	public void setDataDics(List<Resource> dataDics) {
		this.dataDics = dataDics;
	}

	public List<Priviledge> getPriviledges() {
		return priviledges;
	}

	public void setPriviledges(List<Priviledge> priviledges) {
		this.priviledges = priviledges;
	}

	public List<ResourceURI> getResources() {
		return resources;
	}

	public void setResources(List<ResourceURI> resources) {
		this.resources = resources;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	public List<Group> getGroups() {
		return groups;
	}

	public void setGroups(List<Group> groups) {
		this.groups = groups;
	}

	public List<Artwork> getArtworks() {
		return artworks;
	}

	public void setArtworks(List<Artwork> artworks) {
		this.artworks = artworks;
	}

	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}

	public List<ArticleCategory> getCategories() {
		return categories;
	}

	public void setCategories(List<ArticleCategory> categories) {
		this.categories = categories;
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public ResultPage(int totalRecords, int totalPages, int pageSize, int currentPage, List<Article> data) {
		this.totalRecords = totalRecords;
		this.totalPages = totalPages;
		this.pageSize = pageSize;
		this.currentPage = currentPage;
		this.articles = data;
	}

	public ResultPage(int totalRecords, int totalPages, int pageSize, int currentPage) {
		this.totalRecords = totalRecords;
		this.totalPages = totalPages;
		this.pageSize = pageSize;
		this.currentPage = currentPage;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public int getTotalRecords() {
		return totalRecords;
	}

	public void setTotalRecords(int totalRecords) {
		this.totalRecords = totalRecords;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public List<Article> getArticles() {
		return articles;
	}

	public void setArticles(List<Article> articles) {
		this.articles = articles;
	}

}
